package cn.net.ecode.elec.api.entity;

import cn.net.ecode.common.persistence.DataEntity;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

/**
 * @ClassName ChangePwdForm
 * @Description 修改密码表单
 * @Author AlanShelby
 * @Date 2019/8/29 0029 8:47
 * @Version 1.0
 */
public class ChangePwdForm extends DataEntity<ChangePwdForm> {

    private String phone;

    private String password;

    private String validatePassword;

    private String validateCode;

    @NotBlank(message = "手机号不能为空")
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @NotBlank(message = "密码不能为空")
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @NotBlank(message = "验证码不能为空")
    public String getValidateCode() {
        return validateCode;
    }

    public void setValidateCode(String validateCode) {
        this.validateCode = validateCode;
    }

    @NotBlank(message = "确认密码不能为空")
    public String getValidatePassword() {
        return validatePassword;
    }

    public void setValidatePassword(String validatePassword) {
        this.validatePassword = validatePassword;
    }
}
